<template>
	<rich-text :nodes="message"></rich-text>
</template>

<script>
import HTMLParser from './html-parser.js'
export default{
	props:{
		message:{
			type:[String,Number],
			default:''
		}
	},
	computed:{
		messageText(){//将文本信息转成数组
			return HTMLParser(this.message)
		},
	}
}
</script>

<style>
</style>
